
package Comun;

import Controlador.Controladores.FuenteTabla;

/**
 *
 * @author luisramirezmartinez
 */
public class pnlNavegacion extends PanelRoundTranslucido {
    private FuenteTabla FT=null;
    /** Creates new form pnlNavegacion */
    public pnlNavegacion() {
        initComponents();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        samiButton1 = new Comun.SamiButton();
        samiButton2 = new Comun.SamiButton();
        samiButton3 = new Comun.SamiButton();
        samiButton4 = new Comun.SamiButton();

        setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        samiButton1.setBackground(new java.awt.Color(0, 102, 102));
        samiButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_first 2.png"))); // NOI18N
        samiButton1.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_first.png"))); // NOI18N
        samiButton1.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_first 2.png"))); // NOI18N
        samiButton1.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_first.png"))); // NOI18N
        samiButton1.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_first.png"))); // NOI18N
        samiButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                samiButton1MouseClicked(evt);
            }
        });
        add(samiButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 39, -1));

        samiButton2.setBackground(new java.awt.Color(0, 102, 102));
        samiButton2.setForeground(new java.awt.Color(0, 102, 102));
        samiButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_previous-2.png"))); // NOI18N
        samiButton2.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_previous.png"))); // NOI18N
        samiButton2.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_previous-2.png"))); // NOI18N
        samiButton2.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_previous.png"))); // NOI18N
        samiButton2.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_previous.png"))); // NOI18N
        samiButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                samiButton2MouseClicked(evt);
            }
        });
        add(samiButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 10, 39, -1));

        samiButton3.setBackground(new java.awt.Color(0, 102, 102));
        samiButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_next-2.png"))); // NOI18N
        samiButton3.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_next.png"))); // NOI18N
        samiButton3.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_next-2.png"))); // NOI18N
        samiButton3.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_next.png"))); // NOI18N
        samiButton3.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_next.png"))); // NOI18N
        samiButton3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                samiButton3MouseClicked(evt);
            }
        });
        add(samiButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 10, 39, -1));

        samiButton4.setBackground(new java.awt.Color(0, 102, 102));
        samiButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_last 2.png"))); // NOI18N
        samiButton4.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_last.png"))); // NOI18N
        samiButton4.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_last 2.png"))); // NOI18N
        samiButton4.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_last.png"))); // NOI18N
        samiButton4.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_last.png"))); // NOI18N
        samiButton4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                samiButton4MouseClicked(evt);
            }
        });
        add(samiButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 10, 39, -1));
    }// </editor-fold>//GEN-END:initComponents

    private void samiButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_samiButton1MouseClicked
      this.getFT().Primero();
     getParent().getParent().repaint();
    }//GEN-LAST:event_samiButton1MouseClicked

    private void samiButton2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_samiButton2MouseClicked
        this.getFT().Anterior();
        getParent().getParent().repaint();
    }//GEN-LAST:event_samiButton2MouseClicked

    private void samiButton3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_samiButton3MouseClicked
        this.getFT().Siguiente();
        getParent().getParent().repaint();
    }//GEN-LAST:event_samiButton3MouseClicked

    private void samiButton4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_samiButton4MouseClicked
        this.getFT().Ultimo();
        getParent().getParent().repaint();
    }//GEN-LAST:event_samiButton4MouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private Comun.SamiButton samiButton1;
    private Comun.SamiButton samiButton2;
    private Comun.SamiButton samiButton3;
    private Comun.SamiButton samiButton4;
    // End of variables declaration//GEN-END:variables

    /**
     * @return the FT
     */
    public FuenteTabla getFT() {
        return FT;
    }

    /**
     * @param FT the FT to set
     */
    public void setFT(FuenteTabla FT) {
        this.FT = FT;
    }
}
